import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { StoreQuery, StoreVO } from '@/api/operates/shopkeeper/types';

/**
 * 店主列表
 * @param query 
 * @returns 
 */
export const listStore = (query: StoreQuery): AxiosPromise<TableInfoVO<StoreVO>> => {
  return request({
    url: '/store/list',
    method: 'get',
    params: query
  });
};

/**
 * 店主认证
 * @param ids 
 * @returns 
 */
export const updateGoods = (ids: string | number) => {
  return request({
    url: `/store/audit/${ids}`,
    method: 'put'
  });
};